Weighted prediction based on vectorized entropy coding

ABSTRACT

This disclosure describes methods that control the selection of predictive coding techniques for enhancement layer video blocks based on characteristics of vectorized entropy coding for such enhancement layer video blocks. In accordance with this disclosure, the predictive techniques used for predictive-based video coding of enhancement layer video blocks are dependent upon the vectorized entropy coding used for such enhancement layer the video blocks. For each coded unit, predictive coding techniques (e.g. weighted or non-weighted prediction) may be selected depending upon whether the vectorized entropy coding defines a single vector for the video blocks of that coded unit or multiple vectors for the video blocks of that coded unit.

RELATED APPLICATION

This application claims the benefit of provisional U.S. Application Ser.No. 61/106,039 filed Oct. 16, 2008, which is incorporated herein byreference.

TECHNICAL FIELD

This disclosure relates to block-based digital video coding used tocompress video data.

BACKGROUND

Digital video capabilities can be incorporated into a wide range ofdevices, including digital televisions, digital direct broadcastsystems, wireless communication devices such as radio telephonehandsets, wireless broadcast systems, personal digital assistants(PDAs), laptop or desktop computers, digital cameras, digital recordingdevices, video gaming devices, video game consoles, and the like.Digital video devices implement video compression techniques, such asMPEG-2, MPEG-4, or H.264/MPEG-4, Part 10, Advanced Video Coding (AVC),to transmit and receive digital video more efficiently. Videocompression techniques perform spatial and temporal prediction to reduceor remove redundancy inherent in video sequences.

Block-based video compression techniques generally perform spatialprediction and/or temporal prediction. Intra-coding relies on spatialprediction to reduce or remove spatial redundancy between video blockswithin a given coded unit, which may comprise a video frame, a slice ofa video frame, or the like. In contrast, inter-coding relies on temporalprediction to reduce or remove temporal redundancy between video blocksof successive coded units of a video sequence. For intra-coding, a videoencoder performs spatial prediction to compress data based on other datawithin the same coded unit. For inter-coding, the video encoder performsmotion estimation and motion compensation to track the movement ofcorresponding video blocks of two or more adjacent coded units.

A coded video block may be represented by prediction information thatcan be used to create or identify a predictive block, and a residualblock of data indicative of differences between the block being codedand the predictive block. In the case of inter-coding, one or moremotion vectors are used to identify the predictive block of data, whilein the case of intra-coding, the prediction mode can be used to generatethe predictive block. Both intra-coding and inter-coding may defineseveral different prediction modes, which may define different blocksizes and/or prediction techniques used in the coding. Additional typesof syntax elements may also be included as part of encoded video data inorder to control or define the coding techniques or parameters used inthe coding process.

After block-based prediction coding, the video encoder may applytransform, quantization and entropy coding processes to further reducethe bit rate associated with communication of a residual block.Transform techniques may comprise discrete cosine transforms orconceptually similar processes, such as wavelet transforms, integertransforms, or other types of transforms. In a discrete cosine transform(DCT) process, as an example, the transform process converts a set ofpixel values into transform coefficients, which may represent the energyof the pixel values in the frequency domain. Quantization is applied tothe transform coefficients, and generally involves a process that limitsthe number of bits associated with any given transform coefficient.Entropy coding comprises one or more processes that collectivelycompress a sequence of quantized transform coefficients.

In many cases, a video sequence may be coded into a base layer and oneor more enhancement layers. In this case, the base layer may define abase level of video quality, and one or more enhancement layers mayenhance the quality of the decoded video signal. Enhancement layers mayimprove the video quality in a variety of ways, e.g., possibly providingspatial enhancements to base layer frames, possibly providing signal tonoise enhancements, or possibly providing temporal enhancements to thedecoded video by adding additional frames between the base layer frames.In any case, the encoded video may be transmitted to a video decodingdevice, which performs the reciprocal process of the video encoder inorder to reconstruct the video sequence.

SUMMARY

In general, this disclosure describes methods that control the selectionof predictive coding techniques for enhancement layer video blocks basedon characteristics of vectorized entropy coding for such enhancementlayer video blocks. Vectorized entropy coding refers to entropy codingof video blocks in reliance on a vector syntax element that defines thenumber of vectors associated with the video block. The vector syntaxelement may be defined for each coded unit, e.g., for each video frameor for each independently decodable slice or portion of a video frame.Each vector defined by the vector syntax element defines a set ofcoefficients of the video blocks that will be entropy coded together. Ifseveral vectors are defined for the video blocks of a coded unit, thenseveral distinct sets of coefficients will be entropy coded separatelyfor each of the video blocks. If only one vector is defined for thevideo blocks of a coded unit, then all of the coefficients for eachgiven video block will be entropy coded together.

In accordance with this disclosure, the predictive techniques used forpredictive-based video coding of enhancement layer video blocks aredependent upon the vectorized entropy coding used for such enhancementlayer the video blocks. For each coded unit, predictive codingtechniques (e.g. weighted or non-weighted prediction) may be selecteddepending upon whether the vectorized entropy coding defines a singlevector for the video blocks of that coded unit or multiple vectors forthe video blocks of that coded unit. In particular, weighted predictionmay be selected when the vectorized entropy coding establishes two ormore vectors for the enhancement layer video blocks.

Alternatively, non-weighted prediction such as sequential prediction maybe selected when the vectorized entropy coding establishes a singlevector for the enhancement layer video blocks. In this disclosure,weighted prediction refers to prediction that references weightedprediction data comprising a combination of predictive enhancement layerdata and predictive base layer data. Sequential prediction, in contrast,refers to prediction that references the previously coded data, e.g., apredictive frame, of the same layer associated with the block beingcoded.

In one example, this disclosure provides a method of coding data of avideo sequence. The method comprises defining one or more vectors forvectorized entropy coding of enhancement layer video blocks of a codedunit in the video sequence, selecting a prediction mode for theenhancement layer video blocks of the coded unit based on the definedvectorized entropy coding, wherein selecting the prediction modeincludes selecting weighted prediction when the defined vectorizedentropy coding establishes two or more vectors for the enhancement layervideo blocks, and coding the enhancement layer video blocks based on theselected prediction mode and the vectorized entropy coding.

In another example, this disclosure provides an apparatus that codesdata of a video sequence. The apparatus comprises a control unit thatdefines one or more vectors for vectorized entropy coding of enhancementlayer video blocks of a coded unit in the video sequence, and selects aprediction mode for the enhancement layer video blocks of the coded unitbased on the defined vectorized entropy coding, wherein the control unitselects weighted prediction when the defined vectorized entropy codingestablishes two or more vectors for the enhancement layer video blocks.The apparatus also comprises a prediction unit that performs predictivecoding techniques based on the selected prediction mode, and an entropycoding unit that performs the vectorized entropy coding.

In another example, this disclosure provides a device that codes data ofa video sequence, the device comprising means for defining one or morevectors for vectorized entropy coding of enhancement layer video blocksof a coded unit in the video sequence, means for selecting a predictionmode for the enhancement layer video blocks of the coded unit based onthe defined vectorized entropy coding, wherein means for selecting theprediction mode includes means for selecting weighted prediction whenthe defined vectorized entropy coding establishes two or more vectorsfor the enhancement layer video blocks, and means for coding theenhancement layer video blocks based on the selected prediction mode andthe vectorized entropy coding.

In another example, this disclosure provides a device comprising acontrol unit that defines one or more vectors for vectorized entropyencoding of enhancement layer video blocks of a coded unit in the videosequence, and selects a prediction mode for the enhancement layer videoblocks of the coded unit based on the defined vectorized entropy coding,wherein the control unit selects weighted prediction when the definedvectorized entropy coding establishes two or more vectors for theenhancement layer video blocks, a prediction unit that performspredictive encoding techniques based on the selected prediction mode, anentropy encoding unit that performs the vectorized entropy encoding togenerate at least a portion of a bitstream, and a wireless transmitterthat sends the bitstream to another device.

In another example, this disclosure provides a device comprising awireless receiver that receives a bitstream comprising entropy codedcoefficient values of enhancement layer video blocks of a coded unit ina video sequence, a control unit that defines one or more vectors forvectorized entropy decoding of the enhancement layer video blocks of thecoded unit in the video sequence, and selects a prediction mode for theenhancement layer video blocks of the coded unit based on the definedvectorized entropy coding, wherein the control unit selects weightedprediction when the defined vectorized entropy coding establishes two ormore vectors for the enhancement layer video blocks, a prediction unitthat performs predictive decoding techniques based on the selectedprediction mode, and an entropy decoding unit that performs thevectorized entropy decoding.

The techniques described in this disclosure may be implemented inhardware, software, firmware, or any combination thereof. If implementedin hardware, an apparatus may be realized as an integrated circuit, aprocessor, discrete logic, or any combination thereof. If implemented insoftware, the software may be executed in one or more processors, suchas a microprocessor, application specific integrated circuit (ASIC),field programmable gate array (FPGA), or digital signal processor (DSP).The software that executes the techniques may be initially stored in acomputer-readable medium and loaded and executed in the processor.

Accordingly, this disclosure also contemplates a computer-readablemedium comprising instructions that upon execution in a video codingdevice cause the device to code data of a video sequence. In particular,the instructions cause the device to define one or more vectors forvectorized entropy coding of enhancement layer video blocks of a codedunit in the video sequence, select a prediction mode for the enhancementlayer video blocks of the coded unit based on the defined vectorizedentropy coding, wherein the instructions cause the device to selectweighted prediction when the defined vectorized entropy codingestablishes two or more vectors for the enhancement layer video blocks,and code the enhancement layer video blocks based on the selectedprediction mode and the vectorized entropy coding.

The details of one or more aspects of the disclosure are set forth inthe accompanying drawings and the description below. Other features,objects, and advantages of the techniques described in this disclosurewill be apparent from the description and drawings, and from the claims.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is an exemplary block diagram illustrating a video encoding anddecoding system.

FIG. 2A is a conceptual diagram illustrating sequential prediction.

FIG. 2B is a conceptual diagram illustrating weighted prediction.

FIG. 2C is another conceptual diagram illustrating weighted prediction.

FIG. 3A is a conceptual diagram illustrating zig-zag scanning of a4-by-4 video block.

FIG. 3B is a diagram illustrating vectors associated with differentvector control signals applied during zig-zag scanning of the block ofFIG. 3A.

FIG. 4 is a block diagram illustrating an exemplary video encoderconsistent with this disclosure.

FIG. 5 is a block diagram illustrating an exemplary video decoderconsistent with this disclosure.

FIGS. 6 and 7 are flow diagrams illustrating techniques consistent withthis disclosure.

DETAILED DESCRIPTION

This disclosure describes methods that control the selection ofpredictive coding techniques for enhancement layer video blocks based oncharacteristics of vectorized entropy coding for such enhancement layervideo blocks. In accordance with this disclosure, the predictivetechniques used for predictive-based video coding of enhancement layervideo blocks are dependent upon the vectorized entropy coding used forsuch enhancement layer the video blocks. For each coded unit, predictivecoding techniques (e.g. weighted or non-weighted prediction) may beselected depending upon whether the vectorized entropy coding defines asingle vector for the video blocks of that coded unit or multiplevectors for the video blocks of that coded unit.

Vectorized entropy coding refers to entropy coding of video blocks inreliance on a vector syntax element that defines the number of vectorsassociated with the video block. The vector syntax element may bedefined for each coded unit, e.g., for each video frame or for eachindependently decodable slice or portion of a video frame. Each vectordefined by the vector syntax element defines a set of coefficients ofthe video blocks that will be entropy coded together. If several vectorsare defined for the video blocks of a coded unit, then several distinctsets of coefficients will be entropy coded separately for that codedunit. If only one vector is defined for the video blocks of a codedunit, then all of the coefficients for each given video block will beentropy coded together for that coded unit.

In accordance with this disclosure, weighted prediction may be selectedwhen the vectorized entropy coding establishes two or more vectors forthe enhancement layer video blocks. Alternatively, non-weightedprediction such as sequential prediction may be selected when thevectorized entropy coding establishes a single vector for theenhancement layer video blocks. In this disclosure, weighted predictionrefers to prediction that references weighted prediction data comprisinga combination of predictive enhancement layer data and predictive baselayer data. Sequential prediction, in contrast, refers to predictionthat references the previously coded data, e.g., a predictive frame, ofthe same layer associated with the block being coded.

FIG. 1 is a block diagram illustrating an exemplary video encoding anddecoding system 10 that may implement techniques of this disclosure. Asshown in FIG. 1, system 10 includes a source device 12 that transmitsencoded video to a destination device 16 via a communication channel 15.Source device 12 and destination device 16 may comprise any of a widerange of devices. In some cases, source device 12 and destination device16 may comprise wireless communication device handsets, such asso-called cellular or satellite radiotelephones. The techniques of thisdisclosure, however, which apply more generally to predictive coding andentropy coding, are not necessarily limited to wireless applications orsettings, and may be applied to non-wireless devices including videoencoding and/or decoding capabilities.

In the example of FIG. 1, source device 12 may include a video source20, a video encoder 22, a modulator/demodulator (modem) 23 and atransmitter 24. Destination device 16 may include a receiver 26, a modem27, a video decoder 28, and a display device 30. In accordance with thisdisclosure, video encoder 22 of source device 12 may be configured toperform vectorized entropy encoding and prediction techniques that aredefined or selected based on the vectorized entropy encoding. Similarly,video decoder 28 of destination device 16 may be configured to performvectorized entropy decoding and prediction techniques that are definedor selected based on the vectorized entropy decoding. In any case, theillustrated system 10 of FIG. 1 is merely exemplary. The vectorizedentropy coding techniques and associated prediction techniques of thisdisclosure may be performed by any encoding or decoding devices. Sourcedevice 12 and destination device 16 are merely examples of codingdevices that can support such techniques.

Video encoder 22 of source device 12 may encode video data received fromvideo source 20 using the techniques of this disclosure. Video source 20may comprise a video capture device, such as a video camera, a videoarchive containing previously captured video, or a video feed from avideo content provider. As a further alternative, video source 20 maygenerate computer graphics-based data as the source video, or acombination of live video, archived video, and computer-generated video.In some cases, if video source 20 is a video camera, source device 12and destination device 16 may form so-called camera phones or videophones. In each case, the captured, pre-captured or computer-generatedvideo may be encoded by video encoder 22.

Once the video data is encoded by video encoder 22, the encoded videoinformation may then be modulated by modem 23 according to acommunication standard, e.g., such as code division multiple access(CDMA) or another communication standard or technique, and transmittedto destination device 16 via transmitter 24. Modem 23 may includevarious mixers, filters, amplifiers or other components designed forsignal modulation. Transmitter 24 may include circuits designed fortransmitting data, including amplifiers, filters, and one or moreantenna.

Receiver 26 of destination device 16 receives information over channel15, and modem 27 demodulates the information. The video decoding processperformed by video decoder 28 may include vectorized entropy decodingand prediction techniques that are defined or selected based on thevectorized entropy decoding, as described herein. Display device 28displays the decoded video data to a user, and may comprise any of avariety of display devices such as a cathode ray tube (CRT), a liquidcrystal display (LCD), a plasma display, an organic light emitting diode(OLED) display, or another type of display device.

Communication channel 15 may comprise any wireless or wiredcommunication medium, such as a radio frequency (RF) spectrum or one ormore physical transmission lines, or any combination of wireless andwired media. Communication channel 15 may form part of a packet-basednetwork, such as a local area network, a wide-area network, or a globalnetwork such as the Internet. Communication channel 15 generallyrepresents any suitable communication medium, or collection of differentcommunication media, for transmitting video data from source device 12to destination device 16.

Video encoder 22 and video decoder 28 may operate according to a videocompression standard such as the ITU-T H.264 standard, alternativelyreferred to as MPEG-4, Part 10, Advanced Video Coding (AVC). However,the techniques of this disclosure may be readily applied to any of avariety of other video coding standards. Specifically, any standard thatallows for vectorized entropy coding may benefit from the teaching ofthis disclosure.

Although not shown in FIG. 1, in some aspects, video encoder 22 andvideo decoder 28 may each be integrated with an audio encoder anddecoder, and may include appropriate MUX-DEMUX units, or other hardwareand software, to handle encoding of both audio and video in a commondata stream or separate data streams. If applicable, MUX-DEMUX units mayconform to the ITU H.223 multiplexer protocol, or other protocols suchas the user datagram protocol (UDP).

Video encoder 22 and video decoder 28 each may be implemented as one ormore microprocessors, digital signal processors (DSPs), applicationspecific integrated circuits (ASICs), field programmable gate arrays(FPGAs), discrete logic, software, hardware, firmware or anycombinations thereof. Each of video encoder 22 and video decoder 28 maybe included in one or more encoders or decoders, either of which may beintegrated as part of a combined encoder/decoder (CODEC) in a respectivemobile device, subscriber device, broadcast device, server, or the like.

In some cases, devices 12, 16 may operate in a substantially symmetricalmanner. For example, each of devices 12, 16 may include video encodingand decoding components. Hence, system 10 may support one-way or two-wayvideo transmission between video devices 12, 16, e.g., for videostreaming, video playback, video broadcasting, or video telephony.

During the encoding process, video encoder 22 may execute a number ofcoding techniques or steps. In general, video encoder 22 operates onvideo blocks within individual video frames (or other independentlycoded units such as slices) in order to encode the video blocks. Thevideo blocks may have fixed or varying sizes, and may differ in sizeaccording to a specified coding standard. In some cases, each videoframe may include a series of independently decodable slices, and eachslice may include a series of macroblocks, which may be arranged intoeven smaller blocks. Macroblocks typically refer to 16 by 16 blocks ofdata. The ITU-T H.264 standard supports intra prediction in variousblock sizes, such as 16 by 16, 8 by 8, or 4 by 4 for luma components,and 8×8 for chroma components, as well as inter prediction in variousblock sizes, such as 16 by 16, 16 by 8, 8 by 16, 8 by 8, 8 by 4, 4 by 8and 4 by 4 for luma components and corresponding scaled sizes for chromacomponents. In this disclosure, the term video blocks refers to any sizeof video block. Video blocks may refer to blocks of video data in thepixel domain, or blocks of data in a transform domain such as discretecosine transform (DCT) domain.

Video encoder 22 may perform predictive coding in which a video blockbeing coded is compared to a predictive frame (or other coded unit) inorder to identify a predictive block. The differences between thecurrent video block being coded and the predictive block are coded as aresidual block, and prediction syntax is used to identify the predictiveblock. The residual block may be transformed and quantized. Transformtechniques may comprise a discrete cosine transform (DCT) orconceptually similar process, integer transforms, wavelet transforms, orother types of transforms. In a DCT process, as an example, thetransform process converts a set of pixel values into transformcoefficients, which may represent the energy of the pixel values in thefrequency domain. Quantization is applied to the transform coefficients,and generally involves a process that limits the number of bitsassociated with any given transform coefficient.

Following transform and quantization, entropy coding may be performed onthe quantized and transformed residual video blocks. Syntax elements mayalso be included in the entropy coding. In general, entropy codingcomprises one or more processes that collectively compress a sequence ofquantized transform coefficients. Scanning techniques, such as zig-zagscanning techniques, are performed on the quantized transformcoefficients in order to define one or more serialized one-dimensionalvectors of coefficients from two-dimensional video blocks. The scannedcoefficients are then entropy coded, e.g., via content adaptive variablelength coding (CAVLC), context adaptive binary arithmetic coding(CABAC), or another entropy coding process.

Vectorized entropy coding refers to entropy coding of video blocks inreliance on a vector syntax element that defines the number of vectorsassociated with the video block. The vector syntax element may bedefined for each coded unit, e.g., for each video frame or for eachindependently decodable slice or portion of a video frame. Each vectordefined by the vector syntax element defines a set of coefficients ofthe video blocks that will be entropy coded together. If several vectorsare defined for the video blocks of a coded unit, then several distinctsets of coefficients will be entropy coded separately for each of thevideo blocks of that coded unit. If only one vector is defined for thevideo blocks of a coded unit, then all of the coefficients for eachrespective video block will be entropy coded together for that codedunit.

In accordance with this disclosure, different types of predictiontechniques may be used depending on the number of vectors defined forvectorized entropy coding of video blocks of a coded unit (e.g., a frameor slice). For example, video encoder 22 may select weighted predictionwhen the vectorized entropy coding establishes two or more vectors forthe enhancement layer video blocks. Alternatively, video encoder 22 mayselect non-weighted prediction, such as sequential prediction, when thevectorized entropy coding establishes a single vector for theenhancement layer video blocks. In this disclosure, weighted predictionrefers to prediction that references weighted prediction data comprisinga combination of predictive enhancement layer data and predictive baselayer data. Sequential prediction, in contrast, refers to predictionthat references the previously coded data, e.g., a predictive frame, ofthe same layer (e.g., base or enhancement) associated with the blockbeing coded.

FIG. 2A is a conceptual diagram illustrating sequential prediction. FIG.2B is a conceptual diagram illustrating weighted prediction (which maycomprise so-called “Adaptive Refinement” prediction). Again, inaccordance with this disclosure, video encoder 22 and video decoder 28may select prediction techniques (e.g., weighted vs. non-weightedprediction) for enhancement layer video blocks based on the vectorizedentropy coding applied to such video blocks. The adaptive refinementprediction technique may be selected, for example, when the vectorizedentropy coding defines two or more vectors for the respective videoblocks of a coded unit.

Scalable video coding (SVC) refers to video coding that makes use of abase layer and one or more enhancement layers. In this case, the baselayer may define a base level of video quality, and one or moreenhancement layers may enhance the quality of the decoded video signal.Enhancement layers may improve the video quality in a variety of ways,e.g., possibly providing spatial enhancements to base layer frames,possibly providing signal-to-noise enhancements by adding additional bitdepth to pixel values of base layer frames, or possibly providingtemporal enhancements to the decoded video by adding additional framesbetween the base layer frames. Video blocks coded in the base layer arereferred to as base layer video blocks, while video blocks encoded inthe enhancement layer are referred to as enhancement layer video blocks.In FIGS. 2A and 2B, base layer frames are denoted B1-B5 and B1′-B5′,while enhancement layer frames are denoted as E1-E14 and E1′-E14′.Again, a frame may define a decodable unit, although slices or otherportions of frames could define smaller decodable units.

FIG. 2A conceptually illustrates sequential prediction used in intracoding base layer and enhancement layer video blocks. In this case, theblocks of base layer frame B1 are used as the predictive references forthe blocks of base layer frame B2. Similarly, the blocks of base layerframe B2 are used as the predictive references for the blocks of baselayer frame B3, the blocks of base layer frame B3 are used as thepredictive references for the blocks of base layer frame B4, and soforth. Motion estimation may be used to define a motion vector, whichindicates displacement of a current video block in a current framerelative to a predictive video block of the predictive frame. Motioncompensation, then, uses the motion vector to fetch or generate thepredictive video block from the predictive frame.

In the enhancement layer, the blocks of enhancement layer frame E1 areused as the predictive references for the blocks of enhancement layerframe E2. Similarly, the blocks of enhancement layer frame E2 are usedas the predictive references for the blocks of enhancement layer frameE3, the blocks of enhancement layer frame E3 are used as the predictivereferences for the blocks of enhancement layer frame E4, the blocks ofenhancement layer frame E4 are used as the predictive references for theblocks of enhancement layer frame E5, and so forth. One potentialproblem with the sequential prediction techniques shown in FIG. 2A,however, is the potential for error drift. In this case, errors in oneframe may be propagated to subsequent frames since the video blocks ofeach successive frame depends on those of the previous frame.

In order to address this issue of error drift, particularly in theenhancement layer, weighted prediction techniques have been developed.In this case, enhancement layer video blocks may be predicted frompredictive blocks of predictive frames that comprise weighted averagesof previous base and enhancement layer frames. For example, predictiveframe P1′ may comprise a weighted interpolation of base layer frame B1′and enhancement layer frame E1′. Blocks of enhancement layer frame E2may be coded based on the blocks of predictive frame P1′. Predictiveframe P2′ may comprise a weighted interpolation of base layer frame B1′and enhancement layer frame E2′, and enhancement layer frame E3 may becoded based on the blocks of predictive frame P2′. Predictive frame P3′may comprise a weighted interpolation of base layer frame B1′ andenhancement layer frame E3′, and enhancement layer frame E4 may be codedbased on the blocks of predictive frame P3′. The dotted lines in FIG. 2Bdenote interpolation, and the backward arrows point to the predictionframe used to code a given frame.

Weighted prediction, such as that shown in FIG. 2B may help to avoiderror drift. For example, if errors emerge in enhancement layer frameE2′, these errors may be mitigated in predictive frame P2′ due to thepartial dependency of P2′ on base layer frame B1′. Sequentialprediction, as shown in FIG. 2A has the advantage of exploiting temporalredundancy, with the disadvantage of error propagation. In contrast,prediction of enhancement layer frames based solely on base layer framesmay have an advantage of reduced error propagation, but does not exploitthe phenomenon of temporal redundancy (which can improve compression) aswell as sequential prediction. The weighted prediction scheme shown inFIG. 2B can balance these advantages and disadvantages to achieve adesirable balance of high compression (due to exploiting temporalredundancy) and mitigated error propagation (due to the dependency onrobust base layer frames).

The weighted prediction may assign weights to the enhancement layer andbase layer frames used to create the weighted prediction frames.Moreover, these weight factors may change or adapt over time. The weightfactors are sometimes called “leaky factors,” and may be defined byother terminology. In any case, the techniques of this disclosure arenot dependent upon the types of weight factors used to define thedifferent weighted prediction frames.

As mentioned above, different types of prediction techniques may be useddepending on the number of vectors defined for vectorized entropy codingof video blocks of a coded unit. For example, weighted predictionsimilar to that shown in FIG. 2B may be selected when the vectorizedentropy coding establishes two or more vectors for the enhancement layervideo blocks. Alternatively, non-weighted prediction, such as sequentialprediction similar to that shown in FIG. 2A, may be selected when thevectorized entropy coding establishes a single vector for theenhancement layer video blocks. Vectorized entropy coding may establisha single vector by either defining a single vector for a given frame orother coded unit, or by disabling the ability to define several vectorsfor a given frame or other coded unit.

FIG. 2C is another conceptual diagram illustrating prediction ofenhancement layer frames (E1″ through E5″) based on weighted predictiveframes (P1″ through P5″). In this case, a weighted interpolation of baselayer frame B2″ and enhancement layer frame E1″ defines predictive frameP2″. Similarly, a weighted interpolation of base layer frame B3″ andenhancement layer frame E2″ defines predictive frame P3″ and so forth.As with FIG. 2B, the weight factors may change or adapt over time. Inany case, in the example of FIG. 2C, temporally aligned base layerframes (aligned with the current enhancement layer frame) and previousenhancement layer frames may be interpolated to define the predictiveframes. Other weighted combinations of base layer and enhancement layerinterpolations could also be used to define the predictive frames.

FIGS. 3A and 3B help to illustrate the concept of vectorized entropycoding. FIG. 3A is a conceptual diagram illustrating zig-zag scanning ofa 4-by-4 video block, e.g., a transformed residual block of dataassociated with an enhancement layer. FIG. 3B is a diagram illustratingvectors associated with different vector control signals applied duringzig-zag scanning of the block of FIG. 3A.

In FIG. 3A, the arrow illustrates a zig-zag pattern used to serializethe two-dimensional block of data into a linear sequence of data.Zig-zag scanning is merely one example, and generally, the scanning maybe subject to a wide variety of patterns or scan orders. Importantly,however, the scanning is vectorized in order to support vectorizedentropy coding. In particular, a vector control signal (or other syntaxelement) may define the number and size of one-dimensional vectors thatwill emerge from scanning the video block shown in FIG. 3A.

For example, as shown in FIG. 3B, if the vector control signal specifiesthe number 16 (see item 101), this may signify that the sixteendifferent coefficients of the 4 by 4 coefficient video block shown inFIG. 3A are included in a single vector. In particular, a vector controlsignal of 16 may result in a single vector comprising coefficients 1-16.In this case, entropy coding applies to the full set of coefficients1-16. This scenario may also be defined for vectorized entropy coding bydisabling the ability to define several vectors for a given coded unit(e.g., disabling a vector coding mode), rather than defining a singlevector via control signal 16 (see item 101). When vectors are disabled,this has the same effect for vectorized coding as defining a singlevector for a given coded unit.

In contrast, if the vector control signal specifies the numbers 3 and 16(see item 102), this may signify that the different coefficients of thevideo block shown in FIG. 3A are included in a two different vectors,one having coefficients 1-3 and the other having coefficients 4-16. Inthis case, entropy coding applies separately to the two different setsof coefficients 1-3 and 4-16.

If the vector control signal specifies the numbers 2, 8 and 16 (see item103), this may signify that the different coefficients of the videoblock shown in FIG. 3A are included in a three different vectors, onehaving coefficients 1-2, one having coefficients 3-8, and one havingcoefficients 9-16. In this case, entropy coding applies separately tothe three different sets of coefficients 1-2, 3-8 and 9-16. If thevector control signal specifies the numbers 3, 6, 11, 16 (see item 104),this may signify that the different coefficients of the video blockshown in FIG. 3A are included in a four different vectors, one havingcoefficients 1-3, one having coefficients 4-6, one having coefficients7-11, and one having coefficients 12-16. In this case, entropy codingapplies separately to the three different sets of coefficients 1-3, 4-6,7-11 and 12-16.

The actual syntax used to specify the number or size of the differentvectors is subject to a wide variety of implementations. Thus, theexemplary syntax shown in FIG. 3B is only used to demonstrate theconcepts of this disclosure, and should not be considered limiting ofthe content or format of the control signals. The format for definingvectors for the video blocks of coded units could vary widely.

The techniques of this disclosure define the prediction (e.g., weightedor non-weighted prediction) based on whether vectorized entropy codingspecifies a single vector (such as in the example of item 101 of FIG.3B) or a plurality of vectors (such as in the examples of items 102, 103and 104 of FIG. 3B). In particular, weighted prediction is used any timevectorized entropy coding defines a plurality of vectors for the videoblocks of a coded unit, while non-weighted prediction, such assequential prediction, is used any time the a single vector is definedfor the video blocks of a coded unit for purposes of entropy coding. Asingle vector may be defined for the video blocks of a coded unit forpurposes of entropy coding by selecting a vector control signal of 16(e.g., as shown in item 101 of FIG. 3B), or possibly by disabling vectorcoding mode altogether for a given coded unit. Either way, if a singlevector is defined for the video blocks of a coded unit for purposes ofentropy coding, non-weighted prediction may be used.

Encoder 22 of source define 12 may communicate control signals todecoder 28 of destination device 18 as part of the syntax in order todefine the type of prediction that should be used, or alternatively,encoder 22 and decoder 28 may automatically determine the type ofprediction to use based on whether vectorized entropy coding is enabledand more than one vector is defined for the video blocks.

FIG. 4 is a block diagram illustrating a video encoder 50 consistentwith this disclosure. Video encoder 50 may correspond to video encoder22 of device 20, or a video encoder of a different device. As shown inFIG. 4, vide encoder 50 comprises a control unit 31, a prediction unit32, and a reference frame storage element 34. Video encoder alsoincludes a transform unit 38 and a quantization unit 40, as well asinverse quantization unit 42, inverse transform unit 44 and adders 48and 51. Finally, video encoder 50 also includes a vector scan unit 45and an entropy coding unit 46.

In accordance with this disclosure, control unit 31 defines one or morevectors for vectorized entropy coding of enhancement layer video blocksof a coded unit in a video sequence being coded. Control unit 31 alsoselects a prediction mode for the enhancement layer video blocks of thecoded unit based on the defined vectorized entropy coding. Inparticular, the control unit 31 selects weighted prediction when thedefined vectorized entropy coding establishes two or more vectors forthe enhancement layer video blocks. Alternatively, control unit 31 mayselect non-weighted prediction, such as sequential prediction, when thedefined vectorized entropy coding establishes a single vector for theenhancement layer video blocks. Again, a single vector may be definedfor the enhancement layer video blocks of a coded unit for purposes ofentropy coding by selecting a vector control signal of 16 (e.g., asshown in item 101 of FIG. 3B), or possibly by disabling a vector codingmode altogether for a given coded unit. The vectors may be defined inany manner, and may be defined to balance or define the amount of dataassigned to different layers.

Prediction unit 32 performs predictive coding techniques based on theselected prediction mode defined by prediction control signals fromcontrol unit 31. Thus, prediction unit 32 may support weighted ornon-weighted prediction, but applies the appropriate predictiontechniques at the direction of control unit 31. Corresponding vectorcontrol signals are also sent from control unit 31 to vector scan unit45 and entropy coding unit 46. Vector scan unit 45 performs vectorizedscanning, and entropy coding unit 46 performs vectorized entropy coding.

For inter coding of enhancement layer video blocks, prediction unit 32compares the video block to be encoded to various blocks in one or morevideo reference frames. The predicted data may be retrieved fromreference frame store 34, and may comprise video blocks of previousenhancement layer frames (such as shown in FIG. 2A) or weightedcombinations of previous enhancement layer frames and base layer frames(such as shown in FIG. 2B).

Prediction unit 32 may generate prediction syntax, such as motionvectors, which can be used to identify the prediction blocks used tocode the current enhancement layer video blocks. Prediction unit 32 maycomprise motion estimation and motion compensation units that identify amotion vector that points to a prediction block and generates theprediction block based on the motion vector. Typically, motionestimation is considered the process of generating the motion vector,which estimates motion. For example, the motion vector may indicate thedisplacement of a predictive block within a predictive frame relative tothe current block being coded within the current frame. Motioncompensation is typically considered the process of fetching orgenerating the predictive block based on the motion vector determined bymotion estimation.

Transform unit 38 applies a transform, such as a discrete cosinetransform (DCT) or a conceptually similar transform, to the residualblock, producing a video block comprising residual transform blockcoefficients. Block transform unit 38, for example, may perform othertransforms defined by the H.264 standard, which are conceptually similarto DCT. Alternatively, wavelet transforms or integer transforms may beused.

Quantization unit 40 quantizes the residual transform coefficients tofurther reduce bit rate. Quantization unit 40, for example, may limitthe number of bits used to code each of the coefficients. Afterquantization, vector scan unit 45 scans the quantized coefficient blockfrom a two-dimensional representation to one or more serializedone-dimensional vectors. Again, the number of vectors scanned for agiven video block is originally defined by control unit 31, whichselects the number of vectors and selects the prediction techniques.Vector control signals from control unit 31 to vector scan unit 45inform vector scan unit 45 how to scan the video block, and the numberof vectors to create. The scan order may be pre-programmed (such aszig-zag scanning), or possibly adaptive based on previous codingstatistics.

Following this scanning process, entropy encoding unit 46 encodes thequantized transform coefficients according to an entropy codingmethodology, such as CAVLC or CABAC, to further compress the data. Inparticular, entropy encoding unit 46 applies vectorized coding based onthe vector control signals sent from control unit 31. For example,entropy coding unit 46 may apply entropy coding separately for each ofthe different vectors scanned by vector scan unit 45. If a single vectoris defined for the video blocks, entropy coding unit 46 may applyentropy coding to a set of coefficients that correspond to all of thecoefficients of each video block. In this disclosure, entropy codingrefers to any of a wide variety of entropy coding methodologies, such ascontent adaptive variable length coding (CAVLC), context adaptive binaryarithmetic coding (CABAC), or other entropy coding methodologies.

CAVLC is one type of entropy coding technique supported by the ITUH.264/MPEG4, AVC standard, which may be applied on a vectorized basis byentropy coding unit 46. CAVLC uses variable length coding (VLC) tablesin a manner that effectively compresses serialized “runs” of transformcoefficients. In this case, each separate vector scanned by vector scanunit 45 is coded by entropy coding unit 46 according to CAVLC. In thiscase, entropy coding unit 46 codes each separate vector scanned byvector scan unit 45 according to CAVLC.

CABAC is another type of entropy coding technique supported by the ITUH.264/MPEG4, AVC standard, which may be applied on a vectorized basis byentropy coding unit 46. CABAC may involve several stages, includingbinarization, context model selection, and binary arithmetic coding. Inthis case, entropy coding unit 46 codes each separate vector scanned byvector scan unit 45 according to CABAC. Many other types of entropycoding techniques also exist, and new entropy coding techniques willlikely emerge in the future. This disclosure is not limited to anyspecific entropy coding technique, but simply applies a given entropycoding technique on a vectorized basis, e.g., at the direction ofvectorized control signals from control unit 31.

Following the entropy coding by entropy encoding unit 46, the encodedvideo may be transmitted to another device or archived for latertransmission or retrieval. The encoded video may comprise the entropycoded vectors and various syntax, which can be used by the decoder toproperly configure the decoding process. Inverse quantization unit 42and inverse transform unit 44 apply inverse quantization and inversetransformation, respectively, to reconstruct the residual block in thepixel domain. Summer 51 adds the reconstructed residual block to theprediction block produced by prediction unit 32 to produce areconstructed video block for storage in reference frame store 34. Ifdesired, the reconstructed video block may also go through a deblockingfilter unit (not shown) before being stored in reference frame store 34.The reconstructed video block may be used by prediction unit 32 as areference block to inter-code a block in a subsequent video frame or asa weighed portion of a prediction block used for weighted prediction ofblocks of a subsequent video frame.

FIG. 5 is a block diagram illustrating an example of a video decoder 60,which decodes a video sequence that is encoded in the manner describedherein. The received video sequence may comprise an encoded set of imageframes, a group of pictures (GOPs), or a wide variety of coded videothat includes encoded video blocks and syntax to define how to decodesuch video blocks.

Video decoder 60 includes a control unit 31 that controls predictivedecoding and vectorized entropy decoding in the manner described herein.In particular, control unit 31 receives an encoded video bitstream, andparses the bitstream in order to determine syntax that identifieswhether vectorized entropy coding is enabled, and the size and number ofthe vectors. Control unit 31 forwards coded video to entropy decodingunit 52, and also forwards control signals to prediction unit 54, scanunit 55 and entropy decoding unit 52. The control signals ensure thatweighted prediction is used anytime that two or more vectors are definedfor vectorized entropy decoding, and that non-weighted prediction isused anytime a single vector is defined for vectorized entropy decoding(e.g., by defining a single vector or disabling a vector coding mode fora given coded unit).

Entropy decoding unit 52 performs the reciprocal decoding function ofthe encoding performed by entropy encoding unit 46 of FIG. 4. Inparticular, the entropy decoding may be vectorized in the sense thatCAVLC or CABAC decoding may operate on vectorized sets of coefficients.Control unit 31 sends control signals that define the vectorized entropydecoding performed by entropy decoding unit 52. Video decoder 60 alsoincludes a scan unit 55 that performs inverse scanning that isreciprocal to the scanning performed by a scan unit 45 of FIG. 2. Inthis case, scan unit 45 may combine one or more one-dimensional vectorsof coefficients back into a two-dimensional block format. The number andsize of the vectors, as well as the scan order defined for the videoblocks define how the two-dimensional block is reconstructed.

Video decoder 60 also includes a prediction unit 54, an inversequantization unit 56, an inverse transform unit 58, a reference framestore 62, and a summer 64. Optionally, video decoder 60 also may includea deblocking filter (not shown) that filters the output of summer 64.Prediction unit 54 receives prediction syntax (such as motion vectors)from entropy decoding unit 52. Prediction unit 54 also receives controlsignals from control unit 31, which define whether weighed prediction ornon-weighted prediction should be used. Again, weighted prediction isdefined when video blocks are scanned into a plurality of vectors andentropy coding applies separately for different vectors of a videoblock.

Inverse quantization unit 56 performs inverse quantization, and inversetransform unit 58 performs inverse transforms to change the coefficientsof the video blocks back to the pixel domain. Summer 64 combines aprediction block from unit 54 with the reconstructed residual block frominverse transform unit 58 to generate a reconstructed block, which isstored in reference frame store 62. If desired, the reconstructed videoblock may also go through a deblocking filter unit (not shown) beforebeing stored in reference frame store 62. Decoded video is output fromreference frame store 62, and may also be fed back to prediction unit 54for use in subsequent predictions.

FIG. 6 is a flow diagram illustrating a coding (i.e., encoding ordecoding) technique for encoding enhancement layer video blocksconsistent with this disclosure. FIG. 6 will be described from theperspective of video encoder 50, but a similar technique can also beapplied by video decoder 60. In other words, both encoder 50 and decoder60 may define vectors and select prediction (e.g., weighted ornon-weighted prediction) based on the defined vectors. On the encoderside, vectors may be defined to promote coding efficiency. On thedecoder side, vectors may be defined based on syntax that was defined bythe encoder and received as part of the encoded video stream. Of course,on the encoder side, the scanning defines one-dimensional vectors basedon two-dimensional blocks, whereas on the decoder side, the scanningworks in reverse and defines two-dimensional blocks based onone-dimensional vectors.

As shown in FIG. 6, control unit 31 of video encoder 50 defines vectorsfor entropy coding of enhancement layer video blocks (81). Control unit31 then selects a prediction mode (e.g., weighted or non-weightedprediction) based on the defined vectors (82). In particular, if aplurality of vectors is defined for the video block, control unit 31selects weighted prediction, whereas if a single vector is defined forthe video block, control unit 31 selects non-weighted prediction.Prediction unit 32 and vector scan unit 45 with entropy coding unit 46code the enhancement layer video blocks based on the defined vectors andselected prediction mode (83). In particular, prediction unit 32 usesthe selected prediction mode in predictive coding, and vector scan unit45 and entropy coding unit 46 vector scan and entropy code the videoblock based on the defined vectors. In this case, vector scan unit 45converts two-dimensional blocks into one or more one-dimensionalvectors, and entropy coding unit 46 entropy codes the one or moreone-dimensional vectors. By making the prediction mode (weighted ornon-weighted prediction) dependent upon whether a single vector ormultiple vectors are defined for the video block, the coding process maybe improved.

FIG. 7 is another flow diagram illustrating a coding (i.e., encoding ordecoding) technique for encoding enhancement layer video blocksconsistent with this disclosure. FIG. 7 will be described from theperspective of video encoder 50, but a similar technique can also beapplied by video decoder 60. As shown in FIG. 7, control unit 31 ofvideo encoder 50 defines vectors for entropy coding of enhancement layervideo blocks (101). Control unit 31 then determines whether there is onevector per block (102) or a plurality of vectors per block. If there isone vector defined per video block (“yes” 102), control unit 31 directsprediction unit 32 to perform sequential prediction (103), such as shownin FIG. 2A and described above. However, if there are a plurality ofvectors defined per video block (“no” 102), control unit 31 directsprediction unit 32 to perform weighted prediction (104), such as shownin FIG. 2B and described above. Control unit 31 then directs vector scanunit 45 and entropy coding unit 46 to perform vectorized entropy codingbased on the defined vectors for the video block (106). In this case,scan unit 45 scans the predictively coded video block (e.g., theresidual) from a two-dimensional format into one or more one-dimensionalvectors based on the vectorized decision of control unit 31. Entropycoding unit 46 performs entropy coding separately with respect to thecoefficients of each one-dimensional vector defined for the video block.

The techniques of this disclosure may be realized in a wide variety ofdevices or apparatuses, including a wireless handset, and integratedcircuit (IC) or a set of ICs (i.e., a chip set). Any components, modulesor units have been described provided to emphasize functional aspectsand does not necessarily require realization by different hardwareunits.

Accordingly, the techniques described herein may be implemented inhardware, software, firmware, or any combination thereof. Any featuresdescribed as modules or components may be implemented together in anintegrated logic device or separately as discrete but interoperablelogic devices. If implemented in software, the techniques may berealized at least in part by a computer-readable medium comprisinginstructions that, when executed, performs one or more of the methodsdescribed above. The computer-readable data storage medium may form partof a computer program product, which may include packaging materials.The computer-readable medium may comprise random access memory (RAM)such as synchronous dynamic random access memory (SDRAM), read-onlymemory (ROM), non-volatile random access memory (NVRAM), electricallyerasable programmable read-only memory (EEPROM), FLASH memory, magneticor optical data storage media, and the like. The techniquesadditionally, or alternatively, may be realized at least in part by acomputer-readable communication medium that carries or communicates codein the form of instructions or data structures and that can be accessed,read, and/or executed by a computer.

The code may be executed by one or more processors, such as one or moredigital signal processors (DSPs), general purpose microprocessors, anapplication specific integrated circuits (ASICs), field programmablelogic arrays (FPGAs), or other equivalent integrated or discrete logiccircuitry. Accordingly, the term “processor,” as used herein may referto any of the foregoing structure or any other structure suitable forimplementation of the techniques described herein. In addition, in someaspects, the functionality described herein may be provided withindedicated software modules or hardware modules configured for encodingand decoding, or incorporated in a combined video encoder-decoder(CODEC). Also, the techniques could be fully implemented in one or morecircuits or logic elements.

Various aspects of the disclosure have been described. These and otheraspects are within the scope of the following claims.

1. A method of coding data of a video sequence, the method comprising:defining one or more vectors for vectorized entropy coding ofenhancement layer video blocks of a coded unit in the video sequence;selecting a prediction mode for the enhancement layer video blocks ofthe coded unit based on the defined vectorized entropy coding, whereinselecting the prediction mode includes selecting weighted predictionwhen the defined vectorized entropy coding establishes two or morevectors for the enhancement layer video blocks; and coding theenhancement layer video blocks based on the selected prediction mode andthe vectorized entropy coding.
 2. The method of claim 1, wherein theweighted prediction comprises prediction based on predictive blocksformed as weighted combinations of predictive enhancement layer videoblocks and predictive base layer video blocks in the video sequence. 3.The method of claim 1, wherein selecting the prediction mode includesselecting non-weighted prediction when the defined vectorized entropycoding defines a single vector for the enhancement layer video blocks.4. The method of claim 3, wherein the non-weighted prediction comprisessequential prediction.
 5. The method of claim 3, further comprisingdisabling a vector coding mode for the coded unit in order to define thesingle vector for vectorized entropy coding.
 6. The method of claim 1,wherein the coded unit comprises a frame of the video sequence or aslice of a frame of the video sequence.
 7. The method of claim 6,wherein the method is repeated for different coded units of the videosequence.
 8. The method of claim 1, wherein the vectorized entropycoding comprises scanning the enhancement layer video blocks fromtwo-dimensional blocks of transform coefficients into the one or morevectors and separately entropy coding the one or more vectors, whereinthe one or more vectors comprise one-dimensional sets of the transformcoefficients.
 9. The method of claim 1, wherein coding comprisesencoding, the method further comprising transmitting a bitstreamcomprising encoded video blocks.
 10. The method of claim 1, whereincoding comprises decoding, the method further comprising receiving thevideo sequence as a bitstream comprising encoded video blocks.
 11. Anapparatus that codes data of a video sequence, the apparatus comprising:a control unit that defines one or more vectors for vectorized entropycoding of enhancement layer video blocks of a coded unit in the videosequence, and selects a prediction mode for the enhancement layer videoblocks of the coded unit based on the defined vectorized entropy coding,wherein the control unit selects weighted prediction when the definedvectorized entropy coding establishes two or more vectors for theenhancement layer video blocks; a prediction unit that performspredictive coding techniques based on the selected prediction mode; andan entropy coding unit that performs the vectorized entropy coding. 12.The apparatus of claim 11, wherein the weighted prediction comprisesprediction based on predictive blocks formed as weighted combinations ofpredictive enhancement layer video blocks and predictive base layervideo blocks in the video sequence.
 13. The apparatus of claim 11,wherein the control unit selects non-weighted prediction when thedefined vectorized entropy coding defines a single vector for theenhancement layer video blocks.
 14. The apparatus of claim 13, whereinthe non-weighted prediction comprises sequential prediction.
 15. Theapparatus of claim 13, wherein the control unit disables a vector codingmode for the coded unit in order to define the single vector forvectorized entropy coding.
 16. The apparatus of claim 11, wherein thecoded unit comprises a frame of the video sequence or a slice of a frameof the video sequence.
 17. The apparatus of claim 16, wherein thecontrol unit defines one or more vectors and selects the prediction modefor each of a plurality of different coded units of the video sequence.18. The apparatus of claim 11, further comprising a scanning unit,wherein the scanning unit scans the enhancement layer video blocks fromtwo-dimensional blocks of transform coefficients into the one or morevectors and the entropy coding unit separately entropy codes the one ormore vectors, wherein the one or more vectors comprise one-dimensionalsets of the transform coefficients.
 19. The apparatus of claim 11,wherein coding comprises encoding and the entropy coding unit comprisesan entropy encoding unit.
 20. The apparatus of claim 11, wherein codingcomprises decoding and the entropy coding unit comprises an entropydecoding unit.
 21. The apparatus of claim 11, wherein the apparatuscomprises an integrated circuit.
 22. The apparatus of claim 11, whereinthe apparatus comprises a microprocessor.
 23. A computer-readable mediumcomprising instructions that upon execution in a video coding devicecause the device to code data of a video sequence, wherein theinstructions cause the device to: define one or more vectors forvectorized entropy coding of enhancement layer video blocks of a codedunit in the video sequence; select a prediction mode for the enhancementlayer video blocks of the coded unit based on the defined vectorizedentropy coding, wherein the instructions cause the device to selectweighted prediction when the defined vectorized entropy codingestablishes two or more vectors for the enhancement layer video blocks;and code the enhancement layer video blocks based on the selectedprediction mode and the vectorized entropy coding.
 24. Thecomputer-readable medium of claim 23, wherein the weighted predictioncomprises prediction based on predictive blocks formed as weightedcombinations of predictive enhancement layer video blocks and predictivebase layer video blocks in the video sequence.
 25. The computer-readablemedium of claim 23, wherein the instructions case the device to selectnon-weighted prediction when the defined vectorized entropy codingdefines a single vector for the enhancement layer video blocks.
 26. Thecomputer-readable medium of claim 25, wherein the non-weightedprediction comprises sequential prediction.
 27. The computer-readablemedium of claim 25, wherein the instructions cause the device to disablea vector coding mode for the coded unit in order to define the singlevector for vectorized entropy coding.
 28. The computer-readable mediumof claim 23, wherein the coded unit comprises a frame of the videosequence or a slice of a frame of the video sequence.
 29. Thecomputer-readable medium of claim 28, wherein the instructions cause thedevice to define one or more vectors and select the prediction mode foreach of a plurality of different coded units of the video sequence. 30.The computer-readable medium of claim 23, wherein the vectorized entropycoding comprises scanning the enhancement layer video blocks fromtwo-dimensional blocks of transform coefficients into the one or morevectors and separately entropy coding the one or more vectors, whereinthe one or more vectors comprise one-dimensional sets of the transformcoefficients.
 31. The computer-readable medium of claim 23, whereincoding comprises encoding, wherein the instructions cause the device totransmit a bitstream comprising encoded video blocks.
 32. Thecomputer-readable medium of claim 23, wherein coding comprises decoding,wherein the instructions cause the device to receive the video sequenceas a bitstream comprising encoded video blocks.
 33. A device that codesdata of a video sequence, the device comprising: means for defining oneor more vectors for vectorized entropy coding of enhancement layer videoblocks of a coded unit in the video sequence; means for selecting aprediction mode for the enhancement layer video blocks of the coded unitbased on the defined vectorized entropy coding, wherein means forselecting the prediction mode includes means for selecting weightedprediction when the defined vectorized entropy coding establishes two ormore vectors for the enhancement layer video blocks; and means forcoding the enhancement layer video blocks based on the selectedprediction mode and the vectorized entropy coding.
 34. The device ofclaim 33, wherein the weighted prediction comprises prediction based onpredictive blocks formed as weighted combinations of predictiveenhancement layer video blocks and predictive base layer video blocks inthe video sequence.
 35. The device of claim 33, wherein means forselecting the prediction mode includes means for selecting non-weightedprediction when the defined vectorized entropy coding defines a singlevector for the enhancement layer video blocks.
 36. The device of claim35, wherein the non-weighted prediction comprises sequential prediction.37. The device of claim 35, further comprising means for disabling avector coding mode for the coded unit in order to define the singlevector for vectorized entropy coding.
 38. The device of claim 33,wherein the coded unit comprises a frame of the video sequence or aslice of a frame of the video sequence.
 39. The device of claim 38,wherein the means for defining defines one or more vectors and the meansfor selecting selects the prediction mode for each of a plurality ofdifferent coded units of the video sequence.
 40. The device of claim 33,wherein the vectorized entropy coding comprises scanning the enhancementlayer video blocks from two-dimensional blocks of transform coefficientsinto the one or more vectors and separately entropy coding the one ormore vectors, wherein the one or more vectors comprise one-dimensionalsets of the transform coefficients.
 41. The device of claim 33, whereincoding comprises encoding, the device further comprising means fortransmitting a bitstream comprising encoded video blocks.
 42. The deviceof claim 33, wherein coding comprises decoding, the device furthercomprising means for receiving the video sequence as a bitstreamcomprising encoded video blocks.
 43. A device comprising: a control unitthat defines one or more vectors for vectorized entropy encoding ofenhancement layer video blocks of a coded unit in the video sequence,and selects a prediction mode for the enhancement layer video blocks ofthe coded unit based on the defined vectorized entropy coding, whereinthe control unit selects weighted prediction when the defined vectorizedentropy coding establishes two or more vectors for the enhancement layervideo blocks; a prediction unit that performs predictive encodingtechniques based on the selected prediction mode; an entropy encodingunit that performs the vectorized entropy encoding to generate at leasta portion of a bitstream; and a wireless transmitter that sends thebitstream to another device.
 44. The device of claim 43, wherein thedevice comprises a wireless communication handset.
 45. A devicecomprising: a wireless receiver that receives a bitstream comprisingentropy coded coefficient values of enhancement layer video blocks of acoded unit in a video sequence; a control unit that defines one or morevectors for vectorized entropy decoding of the enhancement layer videoblocks of the coded unit in the video sequence, and selects a predictionmode for the enhancement layer video blocks of the coded unit based onthe defined vectorized entropy coding, wherein the control unit selectsweighted prediction when the defined vectorized entropy codingestablishes two or more vectors for the enhancement layer video blocks;a prediction unit that performs predictive decoding techniques based onthe selected prediction mode; and an entropy decoding unit that performsthe vectorized entropy decoding.
 46. The device of claim 45, wherein thedevice comprises a wireless communication handset.